package com.plian.system.enumeratea;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ActionType {
    /**
     * 查看详情
     */
    DETAIL(1, "详情");


    private final Integer actionTypeId;
    private final String actionTypeName;

    public static String getAbbreviationName(Integer actionTypeId) {
        ActionType[] actionTypes = values();
        for (ActionType actionType : actionTypes) {
            if (actionType.actionTypeId.equals(actionTypeId)) {
                return actionType.actionTypeName;
            }
        }
        return null;
    }

}
